package game;

import java.awt.Color;
import java.awt.geom.Rectangle2D;

/**
 * @author patrick
 * 
 */
public class Wall extends Rectangle2D.Double {

	protected double angle;
	protected Color color; 
	
	public Wall() {
		super();
		angle = 0;
		
		color = Color.black;
	}

	public Wall(double x, double y, double w, double h) {
		super(x, y, w, h);
		angle = 0;
		
		color = Color.black;
	}

	/**
	 * returns a String of coordinates, width and height (needed for export)
	 * **/
	public String getValues() {
		String values = String.valueOf(getX()) +","+ String.valueOf(getY()) + ","+
				 String.valueOf(getWidth()) +","+ String.valueOf(getHeight()) + ":";
		return values;
	}

	public void update() {
		System.out.println("rotate");
	}

	public double getAngle() {
		return angle;
	}

	public void setAngle(double angle) {
		this.angle = angle;
	}

	public void moveX(double p) {
		super.x += p;
	}

	public void moveY(double p) {
		super.y += p;
	}

	public void growX(double p) {
		super.height += p;
	}

	public void growY(double p) {
		super.width += p;
	}

	@Override
	public Rectangle2D createIntersection(Rectangle2D r) {
		return super.createIntersection(r);
	}

	@Override
	public Rectangle2D createUnion(Rectangle2D r) {
		return super.createUnion(r);
	}

	@Override
	public int outcode(double x, double y) {
		return super.outcode(x, y);
	}

	@Override
	public void setRect(double x, double y, double w, double h) {
		super.setRect(x, y, w, h);

	}

	@Override
	public double getHeight() {
		return super.getHeight();
	}

	@Override
	public double getWidth() {
		return super.getWidth();
	}

	@Override
	public double getX() {
		return super.getX();
	}

	@Override
	public double getY() {
		return super.getY();
	}

	@Override
	public boolean isEmpty() {
		return super.isEmpty();
	}

	/**
	 * @return the color
	 */
	public Color getColor() {
		return color;
	}

	/**
	 * @param color the color to set
	 */
	public void setColor(Color color) {
		this.color = color;
	}

}
